<?php session_start();
validaAcesso();

echo "<h2>Cadastro de ".$_SESSION["menu"]["reserva"][3]." da UH: {$_SESSION["NOME_HOSTEL_"]}</h2>";

require_once ("funcoes/hostel_almoxarifado.jsp");

//require_once ("funcoes/hostel_item.jsp");
//require_once ("funcoes/hostel_categoria_item.jsp");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Mapa</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	
	<script language="javascript" type="text/javascript" src="../css2/form_validator.js"></script>
	<script language="javascript" type="text/javascript" src="../css2/event-listener.js"></script>
	<script language="javascript" type="text/javascript" src="../css2/format-currency.js"></script>
	<script src='../css2/masked-input.js' type='text/javascript'></script>
    <script src='../css2/auto-tab.js' type='text/javascript'></script>
	
	<script language="javascript" type="text/javascript" src="../css2/internal_request.js"></script>
	<script language="javascript" type="text/javascript" src="../css2/calendar/dhtmlgoodies_calendar.js"></script>
	<link rel="stylesheet" type="text/css" href="../css2/css.css">
</head>
<body>

<?php
########## comeca aqui ##########
?>

<form action='consumo_cliente.jsp' method='POST' autocomplete='off' name='frm_consumo_ind' id='frm_consumo_ind'>

<?php
echo"<div id='itens_adicionados'></div></td><td>";
?>

<div class='item'><h5>Categoria do Item:</h5>
<select name="pid_hostel_categoria_item2" onchange="getConteudo('itens','mapa_ocupacional/itens_consumo_ind', document.frm_consumo_ind.pid_hostel_categoria_item2.value , 0);">
<option>Selecione uma categoria</option>
<?php
//busca as categorias
require_once("funcoes/hostel_categoria_item.jsp");
getCategoriaItem(0,"select");
?>

</select><div id="itens"></div><br>

<div id="itens_concluido"></div><br>

</form></div>

<script type="text/javascript">
	//<![CDATA[

	var f = document.getElementById('frm_consumo_ind');
	MaskInput(f.pqtd, "9");

	autoTab(document.getElementById('frm_consumo_ind'));

	formatCurrency(document.forms.frm_consumo_ind.pvalor, 2);

	var valid  = new Validator("frm_consumo_ind");
	valid.addValidation("pobs_valor","alphanumeric");
	valid.addValidation("pobs_valor","req","Descricao");

	valid.addValidation("pqtd","req","Quantidade");
	valid.addValidation("pqtd","numeric");

	valid.addValidation("pvalor","req","Valor");

	//]]>
</script>	
